package router

import (
	"github.com/gin-gonic/gin"
	"mxshop/mxshop_api/goods_web/api/category"
)

func InitCateGoryRouter(Router *gin.RouterGroup) {
	GoodsRouter := Router.Group("categorys")
	{
		GoodsRouter.GET("", category.List)          //列表
		GoodsRouter.POST("", category.New)          //新建
		GoodsRouter.GET("/:id", category.Detail)    //详情
		GoodsRouter.DELETE("/:id", category.Delete) //删除
		GoodsRouter.PUT("/:id", category.Update)    //更新商品
	}
}
